import Vue from 'vue'
/** 
 * 病例-当前状态服务管理
 */
export default {
  /**
   * 添加当前状态
   *
   * @param {*} [params={}]
   * @param {*} [config={}]
   * @returns
   */
  async addCurrentStatus(params = {}, config = {}) {
    let result = await Vue.http.post('/MedicalRecordCurrentStatus/AddCurrentStatus', params, config);
    return result;
  },
  /**
   * 通过编号获取当前状态
   *
   * @param {*} [params={}]
   * @param {*} [config={}]
   * @returns
   */
  async getCurrentStatusByID(params = {}, config = {}) {
    config.params = params;
    let result = await Vue.http.get('/MedicalRecordCurrentStatus/GetCurrentStatusByID', config);
    return result;
  },
  /**
   * 通过用户编号获取当前状态
   *
   * @param {*} [params={}]
   * @param {*} [config={}]
   * @returns
   */
  async getCurrentStatusByUserID(params = {}, config = {}) {
    config.params = params;
    let result = await Vue.http.get('/MedicalRecordCurrentStatus/GetCurrentStatusByUserID', config);
    return result;
  },
  /**
   * 通过用户编号和编号更新当前状态
   *
   * @param {*} [params={}]
   * @param {*} [config={}]
   * @returns
   */
  async updateCurrentStatus(params = {}, config = {}) {
    let result = await Vue.http.put('/MedicalRecordCurrentStatus/UpdateCurrentStatus', params, config);
    return result;
  }

}
